﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApplication1.Controllers
{
    public class DefaultController : Controller
    {
        // GET: Default
        public ActionResult Index()
        {
            var msg= new Models.Class1();
            msg.name = "My Name is WangQuan";
            msg.year = "I'm 20 years old";
            msg.nationality = "Chinese";

            TempData["nation"] = msg.nationality;

            ViewBag.msg = msg;
            return View();
        }
        public ActionResult About()
        {
            
            return View();
        }
    }
}